package com.zzit.vjv.controller.documentReview_controller.backend;

import com.zzit.vjv.biz.documentReview_biz.backend.BackendUpdBiz;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * 审核修改状态控制器
 */
@Controller("updateController")
public class UpdateController {


    @Resource(name = "backendUpdBiz")
    private BackendUpdBiz backendUpdBiz;

    /**
     * 审核修改方法(通过审核,未通过审核)
     * @return
     */
    @RequestMapping("/checkUpdate")
    public String checkUpdate(Integer id, Integer status){

        System.out.println("id"+id+"status"+status);

        int row=backendUpdBiz.updateStatusById(id, status);

        System.out.println("成功吗"+row);

        return "forward:/typeNameList";
    }


}
